#ifndef BINARYIO_H_
#define BINARYIO_H_

//#include <stdio.h>
//#include <iostream>
#include <fstream>
#include <string>

class BinaryIO
{

	std::ifstream m_fin;
	std::ofstream m_fout;


public:

	BinaryIO();
	~BinaryIO();

	bool OpenToRead(std::string fileName);
	bool OpenToWrite(std::string fileName);

	void CloseRead();
	void CloseWrite();

	bool ReadData(char** pData);
	bool WriteData(char* pData);

	bool ReadData(std::string fileName, char** pData);
	bool WriteData(std::string fileName, char* pData);

	std::ifstream* GetReadStream();
	std::ofstream* GetWriteStream();

};


#endif